package org.nvframe.component.property.operation;

public class Substraction implements Operation {

	private int substractValInt;
	private float substractValFloat;
	private double substractValDouble;
	
	public Substraction(int substractVal) {
		this.substractValInt = substractVal;
	}	
	
	public Substraction(float substractVal) {
		this.substractValFloat = substractVal;
	}
	
	public Substraction(double substractVal) {
		this.substractValDouble = substractVal;
	}
	
	@Override
	public int getResult(int orgVal) {
		return orgVal - substractValInt;
	}

	@Override
	public float getResult(float orgVal) {
		return orgVal - substractValFloat;
	}

	@Override
	public double getResult(double orgVal) {
		return orgVal - substractValDouble;
	}

}
